package data;

/**
 *
 * @author Stijn Verslycken, Jonas Van Den Bossche
 * @date 2007-2008
 */
public class ProductionBuildingType extends BuildingType {

    private int defaultCapacity;
    private String resourceType;

    /**
     * Constructor with all parameters.
     * @param name
     * @param minLevel
     * @param maxLevel
     * @param cost
     * @param defaultCapacity
     * @param resourceType 
     * @param defaultStrength 
     * @param imageUrl
     * @param btnImageUrl 
     */
    public ProductionBuildingType(String name, int minLevel, int maxLevel, int[] cost, int defaultCapacity, String resourceType,
            int defaultStrength, String imageUrl, String btnImageUrl) {
        super(name, minLevel, maxLevel, cost, defaultStrength, imageUrl, btnImageUrl);
        this.setDefaultCapacity(defaultCapacity);
        this.setResourcesType(resourceType);
    }

    /**
     * Constructor with all parameters, cost parameters splitted.
     * @param name
     * @param minLevel
     * @param maxLevel
     * @param foodCost
     * @param woodCost
     * @param stoneCost
     * @param ironCost
     * @param goldCost
     * @param defaultCapacity
     * @param resourceType 
     * @param defaultStrength 
     * @param imageUrl
     * @param btnImageUrl 
     */
    public ProductionBuildingType(String name, int minLevel, int maxLevel, int foodCost, int woodCost, int stoneCost,
            int ironCost, int goldCost, int defaultCapacity, String resourceType, int defaultStrength, String imageUrl, String btnImageUrl) {
        super(name, minLevel, maxLevel, foodCost, woodCost, stoneCost, ironCost, goldCost, defaultStrength, imageUrl, btnImageUrl);
        this.setDefaultCapacity(defaultCapacity);
        this.setResourcesType(resourceType);
    }

    public int getDefaultCapacity() {
        return defaultCapacity;
    }

    public void setDefaultCapacity(int defaultCapacity) {
        this.defaultCapacity = defaultCapacity;
    }
    
    public String getResourceType() {
        return resourceType;
    }
    
    public void setResourcesType(String resourceType)  {
        this.resourceType = resourceType;
    }
}
